package com.zatech.cgnci.project.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 支付计划表
 * </p>
 *
 * @author Generator
 * @since 2024-12-17
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("cgnci_payment_schedule")
@ApiModel(value = "CgnciPaymentScheduleDO对象", description = "支付计划表")
public class CgnciPaymentScheduleDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("计划ID")
    @TableId(value = "schedule_id", type = IdType.ASSIGN_ID)
    private Long scheduleId;

    @ApiModelProperty("业务ID")
    private Long reinsuranceId;

    @ApiModelProperty("缴费期次")
    private Integer paymentPeriod;

    @ApiModelProperty("保费(不含税)")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal premiumExclTax;

    @ApiModelProperty("缴费开始日期")
    private Date paymentStartDate;

    @ApiModelProperty("缴费截止日期")
    private Date paymentEndDate;

    @ApiModelProperty("币种")
    private String currency;

    @ApiModelProperty("汇率")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private BigDecimal rate;

    @ApiModelProperty("当前状态")
    private String status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("更新时间")
    @TableField(update = "now()")
    private Date updateTime;

    @ApiModelProperty("更新人")
    private String updateUser;


}
